<template>
  <div class="identity-container">
    <div class="select-box">
      <h3 class="welcome text-center alert alert-info">欢迎来到C556志愿服务系统，请选择你的登录身份</h3>
      <!-- 选择身份区域 -->
      <!-- 管理人员 -->
      <div class="manager-person alert alert-success">
        <div class="text-center person-title">你是管理人员</div>
        <button class="btn btn-success" @click="ManagerLogin">点击这里登录</button>
      </div>
      <!-- 志愿组织者 -->
      <div class="organization-person alert alert-primary">
        <div class="text-center person-title">你是组织人员</div>
        <button class="btn btn-success" @click="OrganizationLogin">点击这里登录</button>
        <button class="btn btn-info" @click="OrganizationSignIn">点击这里注册</button>
      </div>
      <!-- 志愿者 -->
      <div class="Voluntary-person alert alert-warning">
        <div class="text-center person-title">你是志愿者</div>
        <button class="btn btn-success" @click="VoluntaryLogin">点击这里登录</button>
        <button class="btn btn-info" @click="VoluntarySignIn">点击这里注册</button>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  methods:{
    VoluntaryLogin(){
      this.$router.push('/SelectIdentity/Voluntary/Login')
    },
    VoluntarySignIn(){
      this.$router.push('/SelectIdentity/Voluntary/SignIn')
    },
    OrganizationLogin(){
      this.$router.push('/SelectIdentity/Organization/Login')
    },
    OrganizationSignIn(){
      this.$router.push('/SelectIdentity/Organization/SignIn')
    },
    ManagerLogin(){
      this.$router.push('/SelectIdentity/Manager/Login')
    }
  }
}
</script>

<style lang="less" scoped>
.identity-container {
  background-color: #35495e;
  height: 100%;
  .select-box {
    width: 600px;
    height: 300px;
    background-color: #fff;
    border-radius: 3px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.5);
    .welcome {
      height: 150px;
      line-height: 150px;
    }
    .manager-person {
      position: absolute;
      height: 150px;
      width: 200px;
      left: 0px;
      top: 150px;
      display: flex;
      flex-direction: column;
      justify-content: space-around;
    }
    .organization-person {
      position: absolute;
      height: 150px;
      width: 200px;
      left: 200px;
      top: 150px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }
    .Voluntary-person {
      position: absolute;
      height: 150px;
      width: 200px;
      left: 400px;
      top: 150px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }
    .person-title {
      padding-top: 10px;
      color: black;
      font-size: 15px;
      font-weight: 400;
      font-family: 'PingFang SC', 'Microsoft Yahei', sans-serif;
    }
  }
}
</style>